package adapter.classadapter;

public class Phone {


    public void charging(IVoltage5V iVoltage5V){


        if(iVoltage5V.output5V() == 5){
            System.out.println("5V电压");
        }else if(iVoltage5V.output5V() > 5){
            System.out.println("电压大于5V");

        }






    }

}
